﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Book
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form1 form1 = new Form1();
            form1.Show();
            this.Close();
        }

        private void Form4_Load(object sender, EventArgs e)
        {
            label1.Text = string.Format("管理员：{0}", UserHelper.UserName);
            timer1.Start();
        }

        private void 查看删除读者ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form5_1 form5_1 = new Form5_1();
            form5_1.Show();
        }

        private void 添加图书ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form5_2 form5_2 = new Form5_2();
            form5_2.Show();
        }

        private void 查看删除图书ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form5_3 form5_3 = new Form5_3();
            form5_3.Show();
        }

        private void 修改密码ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form4_4 form4_4 = new Form4_4();
            form4_4.Show();
        }

        private void 图书管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.label2.Text = DateTime.Now.ToString(); 
        }

        private void 读者管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

     

      

      
    }
}
